//
//  XUPhotoCell.m
//  新浪微博
//
//  Created by xuwenxin on 15-4-15.
//  Copyright (c) 2015年 xuwenxin. All rights reserved.
//

#import "XUPhotoCell.h"
#import "HMPhoto.h"

@interface XUPhotoCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imgView;
@end

@implementation XUPhotoCell

- (void)setPhotoURL:(HMPhoto *)photoURL
{
    _photoURL = photoURL;
    NSURL *url = [NSURL URLWithString:photoURL.thumbnail_pic];
    [self.imgView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"icon.jpg"]];
}

@end
